package org.test;

public class Location {

	private Map map;
	private int x;
	private int y;
	
	public Map getMap() {
		return map;
	}
	public void setMap(Map map) {
		this.map = map;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	
	public void setObject(MapObject object){
		map.setObjectOn(object, x, y);
	}
	
}
